package com.zhou.org.mapper;

import com.zhou.org.dao.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lang.zhou
 * @since 2022-08-23
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    void changeDescription(@Param("description") String description,@Param("userId")Integer userId);
    List<Map<String,Object>> getOrgIdList(@Param("userIdList")List<Integer> id);

    List<User> getUserByUserName(@Param("userName") String username);

    User getSuperior(@Param("orgId") Integer orgId);
}
